#include<stdio.h>
int gcd(int a,int b)
{
	return b?gcd(b,a%b):a;
}
int main()
{
	int a,b,temp;
	scanf("%d%d",&a,&b);
	if(a>b)
	{
		temp=a;a=b;b=temp;
	}
	printf("%d\n",(a*b)/gcd(a,b));
	return 0;
}
